package com.qf.mvc2203.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/forw")
public class ForwController {
    /*
    转发到视图
     */
    @RequestMapping("/test1")
    public String test1(){
        System.out.println("ForwController test1");
        //转发的完整的字符串
        return "forward:/views/user.html";
    }
    @RequestMapping("/test2")
    public String test2(){
        System.out.println("ForwController test2");
        //转发的完整的字符串
        return "forward:/user/get";
    }
    @RequestMapping("/test3")
    public String test3(){
        System.out.println("ForwController test3");
        //转发的完整的字符串
        return "forward:test1";
    }
}
